<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>留言交互</title>
	</head>
	<body>
		<div style="padding: 10px;">
			<table cellspacing="0" cellpadding="0" style="width: 100%;margin-bottom: 10px;">
				<tr>				
					<td style="width: 35%;">						
						已完成：
						<span style="color: #F06E00;">
							<s:if test="progres.PSY != 0"><s:property value="progres.PSY"/>篇个人陈述（PS）</s:if>
							<s:if test="progres.RLY != 0"><s:property value="progres.RLY"/>篇推荐信（RL）</s:if>
							<s:if test="progres.CVY != 0"><s:property value="progres.CVY"/>篇简历（CV）</s:if>
							<s:if test="progres.ESY != 0"><s:property value="progres.ESY"/>篇essay</s:if>
						</span>		
					</td>
					<td style="width: 55%;">
						正在修改：
						<span style="color: #F06E00;">
							<s:if test="progres.PSN != 0"><s:property value="progres.PSN"/>篇个人陈述（PS）</s:if>
							<s:if test="progres.RLN != 0"><s:property value="progres.RLN"/>篇推荐信（RL）</s:if>
							<s:if test="progres.CVN != 0"><s:property value="progres.CVN"/>篇简历（CV）</s:if>
							<s:if test="progres.ESN != 0"><s:property value="progres.ESN"/>篇essay</s:if>
						</span>
					</td>					
					<td style="width: 10%;">
						<a href="${ctx }/transactionEntryList.html?vipServiceId=${param.vipServiceId }" target="_parent"><input type="button" class="button" value="查看文书修改详情"></a>
					</td>
				</tr>
			</table>
			最新进展：
			<c:forEach var="comment" items="${comments }">
				<hr style="border-color: #F06E00;border-style: dashed;margin-bottom: 5px;">
				<table cellpadding="0" cellspacing="0" style="width: 80%;margin-bottom: 10px;">
					<tr>
						<td style="width: 10%;">
							<b><fmt:message key="comment.type.${comment.ownerType }"></fmt:message></bl>
						</td>
						<td style="width: 50%;">
							<c:choose>
								<c:when test="${'ROLE_ADVISER' eq comment.user.mainRole.name }">留学顾问：</c:when>
								<c:when test="${'ROLE_EDITOR_IN_CHIEF' eq comment.user.mainRole.name }">专业顾问：</c:when>
								<c:when test="${'ROLE_USER' eq comment.user.mainRole.name }">用户：</c:when>
							</c:choose>
							<span style="color: #F06E00;">${comment.content }</span>
						</td>
						<td>
							<a href="${ctx }/download.html?id=${comment.id }&type=${comment.ownerType }">${comment.attachmentName }</a>
						</td>
						<td>
							<span style="color: #F06E00;"><fmt:formatDate value="${comment.replyTime }" pattern="yyyy-MM-dd HH:MM"/></span>
						</td>
					</tr>
				</table>
			</c:forEach>
		</div>
	</body>	
</html>